package com.qumitech.visualnovel.model.dao.console;

import java.util.Date;


/**
 * Created by Edison.hu on 18/7/25.
 */

public class SysPermission {

    private Integer id;           //主键.
    private String name;          //名称.
    private String permission;    //权限字符串
    private String path;          //前端路由地址.
    private Integer parentId;     //父节点ID
    private Integer level;        //级别
    private String icon;          //前端用的Icon
    private Integer sortId;         //前端用的title
    private Date updatedAt;       //更新时间
    private Date createdAt;       //创建时间



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", permission=").append(permission);
        sb.append(", path=").append(path);
        sb.append(", parentId=").append(parentId);
        sb.append(", level=").append(level);
        sb.append(", icon=").append(icon);
        sb.append(", sortId=").append(sortId);
        sb.append("]");
        return sb.toString();
    }
}
